package com.spring.cloud.examples.service;

import com.spring.cloud.examples.service.impl.FeignServerInfoServiceFallbackImpl;
import com.spring.cloud.examples.vo.TestPostVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "spring-cloud-eureka-service",fallback = FeignServerInfoServiceFallbackImpl.class,configuration = FeignFileConfig.class)
public interface FeignServerInfoService {

    @GetMapping("/server_info/port")
    public String queryServerPort();



    @RequestMapping(value = "/fileupload/upload",method= RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public String fileupload(@RequestPart(value = "1.txt") MultipartFile file);



}
